package com.java.yz.day05.ketang;

public class Phone {
    String color;
    int price;
    String brand;

    public void call(String people){
        System.out.println("打电话给："+people);
    }
    public void message(){
        System.out.println("群聊信息");
    }
}

class PhoneDemo{
    public static void main(String[] args) {
        Phone p1=new Phone();
        p1.brand="小米";
        p1.color="红色";
        p1.price=9000;
        System.out.println("手机品牌为："+p1.brand+",颜色为："+p1.color+",价格为："+p1.price);
        p1.call("顾文泽");
        p1.message();
    }
}

